#include <REGX52.H>
#include "Delay.h"
#include "LCD1602.h"
#include "Int0.h"
#include "IR.h"

unsigned char Address,Command;

void main()
{
	LCD_Init();
	IR_Init();
	LCD_ShowString(1,1,"Add");
	LCD_ShowString(1,5,"Com");
				
	while(1)
	{
		if(IR_GetDataFlag() || IR_GetRepeatFlag())
		{
			Address=IR_GetAddress();
			Command=IR_GetCommand();
			
			LCD_ShowHexNum(2,1,Address,2);
			LCD_ShowHexNum(2,5,Command,2);
		}
	}
}




